package com.xmartjoy.java.david;

public class WebUser {
    private User u = new User();
    private UserDAOImpl udi = new UserDAOImpl();

    public int getID(){
        u=udi.findById(2);
        return u.getId();
    }
    public String getUsername() {
        u=udi.findById(2);
        return u.getName();
    }

    public String getPassword() {
        u=udi.findById(2);
        return u.getPassword();
    }

    public String getType() {
        u=udi.findById(2);
        return u.getType();
    }
}
